package service;

import dao.impl.PointDao;
import dao.impl.PointDaoImpl;
import javabean.Point;

import java.util.List;

public class PointServiceImpl implements PointService {
    PointDao pointDao =new PointDaoImpl();
    @Override
    public void savePoint(Point point) {
        pointDao.savePoint(point);
    }

    @Override
    public int deletePointById(Integer id) {
        return pointDao.delectPointById(id);
    }

    @Override
    public Point queryPointByid(Integer id) {
        return pointDao.queryPointById(id);
    }

    @Override
    public List<Point> queryPointList() {
        return pointDao.queryPointList();
    }
}
